package com.zfp.core.plugins.tree;

/**
 * 
 * <p>ClassName:TreeNode</p>
 * <p>Description:组装树的实体类</p>
 * @author wangxiaobo
 * @date 2015-10-14
 */
public class TreeNode {
	private String id;
	private String pId;
	private String name;
	private Boolean open = false;
	private Boolean checked = false;
	private Boolean isRoot = false;
	private Boolean isParent = false;
	private Boolean hasChild = false;
	private Boolean isHidden = false;
	private Boolean nocheck = false;
	private String target;
	private String url;
	private String icon;
		
	/**
	 * 
	 */
	public TreeNode() {
		super();
	}
	
	/**
	 * 
	 */
	public TreeNode(String id, String pId, String name) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
	}
	
	/**
	 * 
	 */
	public TreeNode(String id, String pId, String name, Boolean open) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.open = open;
	}
	
	/**
	 * 
	 */
	public TreeNode(String id, String pId, String name, Boolean open, Boolean isParent) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.open = open;
		this.isParent = isParent;
	}
	

	public TreeNode(String id, String pId, String name, String target,String url) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.target = target;
		this.url = url;
	}

	//yanhaiyang
	public TreeNode(String id, String pId, String name, String target) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.target = target;
	}
	
	public TreeNode(String id, String pId, Boolean checked,String name) {
		super();
		this.id = id;
		this.pId = pId;
		this.checked = checked;
		this.name = name;
	}
	
	public TreeNode(String id, String pId, Boolean checked,String name, Boolean open) {
		super();
		this.id = id;
		this.pId = pId;
		this.checked = checked;
		this.name = name;
		this.open = open;
	}
	
	public TreeNode(String id, String pId, Boolean checked,String name, Boolean open,Boolean nocheck) {
		super();
		this.id = id;
		this.pId = pId;
		this.checked = checked;
		this.name = name;
		this.open = open;
		this.nocheck = nocheck;
	}

	/**
	 * 
	 */
	public TreeNode(String id, String pId, String name, Boolean open,
			Boolean checked, Boolean isRoot, Boolean isParent,
			Boolean hasChild, Boolean isHidden, String target, String url,
			String icon) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.open = open;
		this.checked = checked;
		this.isRoot = isRoot;
		this.isParent = isParent;
		this.hasChild = hasChild;
		this.isHidden = isHidden;
		this.target = target;
		this.url = url;
		this.icon = icon;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public Boolean getIsRoot() {
		return isRoot;
	}

	public void setIsRoot(Boolean isRoot) {
		this.isRoot = isRoot;
	}

	public Boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(Boolean isParent) {
		this.isParent = isParent;
	}

	public Boolean getHasChild() {
		return hasChild;
	}

	public void setHasChild(Boolean hasChild) {
		this.hasChild = hasChild;
	}

	public Boolean getIsHidden() {
		return isHidden;
	}

	public void setIsHidden(Boolean isHidden) {
		this.isHidden = isHidden;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Boolean getNocheck() {
		return nocheck;
	}

	public void setNocheck(Boolean nocheck) {
		this.nocheck = nocheck;
	}
	
}
